<template>
	<view class="flex flex-column align-center" style="margin-top:100rpx;">
    <image :src="img" style="width: 268rpx;height: 175rpx;" mode="aspectFill"></image>
    <text class="u-m-t-20">{{title}}</text>
		<view class="u-p-y-30">
			<u-tag shape="circle" type="error" bgColor="#f2f2f2" text="去逛逛" @click="toPage"></u-tag>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"dy-no-data",
    props:{
      title: {
        type:String,
        default: '暂无数据'
      },
      img:{
        type: String,
        default: '/static/cart/cart_kong.png'
      },
      url:{
        type: String,
        default: '/pages/tabbar/index/index'
      }
    },
		data() {
			return {}
		},
    methods:{
      toPage() {
        uni.switchTab({
          url:this.url
        })
      }
    }
	}
</script>

<style lang="scss" scoped>

</style>
